import java.math.BigDecimal;

import java.util.Scanner;

public class Five {

	public static void main(String[] args) {
		String a,b;
		Scanner scan = new Scanner(System.in);
		while(scan.hasNextLine()){
			a=scan.nextLine();
		    b=scan.nextLine();
			BigDecimal num1 = new BigDecimal(a);
			BigDecimal num2 = new BigDecimal(b);
			System.out.println(num1.add(num2));
			System.out.println(num1.multiply(num2)); 
		}
		scan.close();
	}

}
